import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes.js'

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

router.beforeEach(async (to, from, next) => {
  // const appStore = useAppStore()

  next()
})

router.beforeResolve((to, from, next) => {
  next()
})

router.afterEach((to, from, next) => {
  console.log(to, from, next)
})

export default router
